import { request } from "@/utils/http";

export  const requestShopCart=()=>{
    return request.get('/api/cart/cartList')
}

export  const requestSingleChecked=({skuId,isChecked})=>{
    return request.get(`/api/cart/checkCart/${skuId}/${isChecked}`)
}
export  const requestDeleteSingleGood=(skuId)=>{
    return request.delete(`/api/cart/deleteCart/${skuId}`)
}
export  const requestCheckedAllGoods=({isChecked,skuIdList})=>{
    return request.post(`/api/cart/batchCheckCart/${isChecked}`,skuIdList);
}
export  const requestDeleteAllGoods=(skuIdList)=>{
    return request.delete("/api/cart/batchDeleteCart",{
        data:{
            skuIdList
        }
    });
}